package com.idsmanager.zdh.infrastructure;

/**
 * 2018/7/10
 * <p>
 * <p>
 * API 错误定义
 *
 * @author Shengzhao Li
 */

public enum APIError {

    PARAM_ERROR(800, "请求参数错误(或校验未通过)");

    private int errorNumber;
    private String description;

    APIError(int errorNumber, String description) {
        this.errorNumber = errorNumber;
        this.description = description;
    }

    public int getErrorNumber() {
        return errorNumber;
    }

    public String getDescription() {
        return description;
    }
}
